# Create your tests here.

import datetime
from apscheduler.schedulers.blocking import BlockingScheduler


scheduler = BlockingScheduler()   # 后台运行

 # 设置为每日凌晨00:30:30时执行一次调度程序
@scheduler.scheduled_job("cron", second='*/1')
def rebate():
    print("schedule execute")


if __name__ == '__main__':
    try:
        scheduler.start()
    except (KeyboardInterrupt, SystemExit):
        scheduler.shutdown()

